package com.common.retrofit.methods;

import com.common.retrofit.base.BaseMethods;
import com.common.retrofit.service.HaiNingService;

import rx.Observable;
import rx.Subscriber;

public class FeedBackMMMethods extends BaseMethods {

    private static FeedBackMMMethods m_ins = null;

    public static FeedBackMMMethods getInstance() {
        if (m_ins == null) {
            synchronized (FeedBackMMMethods.class) {
                if (m_ins == null) {
                    m_ins = new FeedBackMMMethods();
                }
            }
        }
        return m_ins;
    }

    @Override
    protected String getHttpUrl() {
            return "Suggest/";
    }

    private HaiNingService initService() {
        return getRetrofit().create(HaiNingService.class);
    }

    // 获取首页数据
    public void fedd(Subscriber<Object> subscriber,String uid,String hashid, String content) {
        Observable observable = initService().feedbackK(System.currentTimeMillis()+"",
                "c8bb69fee40f114551362426f6adc0be",uid, hashid,content);
        toSubscribe(observable, subscriber);
    }
}
